/**
 * 项目名：	Rumba Plan
 * 
 * 版权所有(C)，上海海鼎信息工程股份有限公司，2006，所有权利保留。
 * 
 * 文件名：	COrganization.java
 * 模块说明：	
 * 修改历史：
 * 2006-10-16 - lxm - 创建。
 */
package com.hd123.rumba.organization;

import com.hd123.rumba.cartridge.FVRumbaSystemCommon;
import com.hd123.rumba.runtime.CBaseEntity;
import com.hd123.rumba.util.HashMap2;

/**
 * 组织 | 常量类
 * 
 * @author lxm
 * @see IOrganization
 * 
 */
public class COrganization extends CBaseEntity {

  public static String CAPTION_CLASS = "组织";

  /** 构件包前缀 */
  public static final String FUNCV_PREFIX = FVRumbaSystemCommon.FUNCV_PREFIX;

  /** 属性：状态 */
  public static final Integer VALUE_STATE_USING = new Integer(0);
  public static final String CAPTION_STATE_USING = "使用中";
  public static final Integer VALUE_STATE_DELETED = new Integer(999);
  public static final String CAPTION_STATE_DELETED = "已删除";
  public static final HashMap2 STATEMAP = new HashMap2().put2(VALUE_STATE_USING,
      CAPTION_STATE_USING).put2(VALUE_STATE_DELETED, CAPTION_STATE_DELETED);

  /** @see IOrganization#getCode() */
  public static String CAPTION_CODE = "代码";
  public static final String PERMISSION_FA_CODE = FUNCV_PREFIX + ".组织.字段.代码";
  public static final int LENGTH_CODE = 20;

  /** @see IOrganization#getName() */
  public static String CAPTION_NAME = "名称";
  public static final String PERMISSION_FA_NAME = FUNCV_PREFIX + ".组织.字段.名称";
  public static final int LENGTH_NAME = 64;

  /** @see IOrganization#getOrganizationDomain() */
  public static String CAPTION_ORGANIZATIONDOMAIN = "组织域";

  /** @see IOrganization#getUpperOrganization() */
  public static String CAPTION_UPPERORGANIZATION = "上级组织";

  /** @see IOrganization#getLevelId() */
  public static String CAPTION_LEVELID = "层级码";
  public static final int LENGTH_LEVELID = 16;
  public static String VALUE_LEVELIDRULE = "4444";

  /** @see IOrganization#getRemark() */
  public static String CAPTION_REMARK = "说明";
  public static final String PERMISSION_FA_REMARK = FUNCV_PREFIX + ".组织.字段.说明";
  public static final int LENGTH_REMARCK = 255;

  /** @see IOrganization#getOrgRoles() */
  public static String CAPTION_ORGROLES = "组织角色列表";
  public static final String PERMISSION_FA_ORGROLES = FUNCV_PREFIX + ".组织.字段.组织角色列表";
}
